package com.feicheng.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.feicheng.entity.IntoHeader;
import com.feicheng.model.IntoHeaderWithItem;
import com.feicheng.model.IntoWithPurchase;
import org.apache.ibatis.annotations.Param;


/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 周启博
 * @since 2022-06-27
 */
public interface IntoHeaderMapper extends BaseMapper<IntoHeader> {

    /**
     * 入库条件分页
     * @param page
     * @param wrapper
     * @return
     * @autor hao.Zhang
     */
    Page<IntoHeaderWithItem> selectIntoPage(
            Page<IntoHeaderWithItem> page,
            @Param(Constants.WRAPPER) QueryWrapper<IntoHeaderWithItem> intoHeaderWithItemQueryWrapper);

    /**
     * 入库详情信息查询
     * @param wrapper
     * @author yvan.yao
     * @return
     */
    IntoWithPurchase selectIntodetail(
            @Param(Constants.WRAPPER) Wrapper wrapper);
}
